Selerix Developer Tools
GetEnumByDescription<T>(String,Boolean) Method






Selerix.Foundation Assembly > Selerix.Foundation.Data Namespace > EnumeratorManipulation Class > GetEnumByDescription Method : GetEnumByDescription<T>(String,Boolean) Method
The enumeration type.
The descritpion.
Ignore case.
Gets the enum by provided description.
Syntax
'Declaration
 
Public Overloads Shared Function GetEnumByDescription(Of T)( _
   ByVal description As String, _
   ByVal ignoreCase As Boolean _
) As T
'Usage
 
Dim description As String
Dim ignoreCase As Boolean
Dim value As T
 
value = EnumeratorManipulation.GetEnumByDescription(Of T)(description, ignoreCase)
public static T GetEnumByDescription<T>( 
   string description,
   bool ignoreCase
)
public function GetEnumByDescription( 
    description: String;
    ignoreCase: Boolean
): T; static; 
public static function GetEnumByDescription( 
   description : String,
   ignoreCase : boolean
) : T;
public: static T* GetEnumByDescription<T>( 
   string* description,
   bool ignoreCase
) 
public:
static T^ GetEnumByDescriptiongeneric<typename T>
( 
   String^ description,
   bool ignoreCase
) 

Parameters

description
The descritpion.
ignoreCase
Ignore case.

Type Parameters

T
The enumeration type.
See Also

Reference

EnumeratorManipulation Class
EnumeratorManipulation Members
Overload List